# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         txw
# Description:
# Author:       yzl
# Date:         2019-03-02
#-------------------------------------------------------------------------------


# s=input('请输入星号塔的层数：')
# s1=int(s)
# for i in range(s1):
#     a=2*(i+1)-1
#     print('{:{c}{b}{width}}'.format('*'*(2*i-1),c=' ',b='^',width=a))


s=int(input("请输入星号塔的层数："))
i=1
a = "*"
while s>0:
    if i<=s:
        print("{b:^15}".format(b=a))
    i+=1
    a=a+"**"